//package com.indicator;
//
//import org.springframework.boot.actuate.health.Health;
//import org.springframework.boot.actuate.health.HealthContributor;
//import org.springframework.boot.actuate.health.HealthIndicator;
//import org.springframework.stereotype.Component;
//
//@Component
//public class ServiceBHealthIndicator implements HealthIndicator, HealthContributor {
//    private final String MESSAGE_KEN = "Service B";
//
//    @Override
//    public Health health() {
//        if(!isServiceAHealth()){
//            return Health.down().withDetail(MESSAGE_KEN, "Not Available").build();
//        }
//        return Health.up().withDetail(MESSAGE_KEN, "Available").build();
//    }
//
//    private boolean isServiceAHealth(){
//        //TODO
//        boolean isRunning = false;
//        return isRunning;
//    }
//}
